passwd is a name service database used to store user account information on Unix-like operating systems.
The sources for the passwd database (and hence the sources of user accounts on a system) are configured, like other name service databases, in nsswitch.conf
.
Contents |
The getent command can be used to fetch passwd information.
getent passwd
For a specific user called 'joe':
getent passwd joe
For a specific uid being '33':
getent passwd 33
The 'pwd' module can be used.[1]